Module-level declarations

Types

Link copied to clipboard
entity chain
Link copied to clipboard
entity contract
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

Functions

Link copied to clipboard
function _get_prototype_name(contract_address: byte_array, token_name: text): text
Link copied to clipboard
function _is_preminted(token_name: text): boolean
Link copied to clipboard
function _mint_token(account: account, token_name: text, contract_address: byte_array, token_id: integer, chain_id: text)
Link copied to clipboard
function create_chain(name: text)
Link copied to clipboard
function create_contract(address: byte_array, chain: chain, block_number: integer)
Link copied to clipboard
Link copied to clipboard
function force_lock_token(contract_address: byte_array, chain_name: text, token_id: integer)
Link copied to clipboard
function is_owned_by(chain_name: text, contract_address: byte_array, token_id: integer, account_id: byte_array): boolean
Link copied to clipboard
function lock_token(contract_address: byte_array, chain_name: text, token_id: integer, account: account)
Link copied to clipboard
Link copied to clipboard
function require_account_id(eth_address: byte_array): byte_array
Link copied to clipboard
Link copied to clipboard
function require_contract_exists(address: byte_array, chain_name: text): contract
Link copied to clipboard
function unlock_token(chain_name: text, contract_address: byte_array, token_id: integer, token_name: text, account: account)
Link copied to clipboard
function verify_block_number_valid(new_block_number: integer, existing_block_number: integer)

Queries

Link copied to clipboard
@mount("evm_bridge.filter_eligible_for_fast_withdrawal") query filter_eligible_for_fast_withdrawal(account_id: byte_array, chain_name: text, tokens: list<withdrawal_token_data>): list<withdrawal_token_data>
Link copied to clipboard
@mount("evm_bridge.get_all_contracts") query get_all_contracts(chain_name: text): list<byte_array>
Link copied to clipboard
@mount("evm_bridge.get_contract") query get_contract(address: byte_array, chain_name: text): (chain: text, address: byte_array, deployedBlockHeight: integer)?
Link copied to clipboard
@mount("evm_bridge.get_token_mappings") query get_token_mappings(): (token_to_prototype_mapping: list<(token_name: text, prototype_name: text)>, contract_token_to_prototype_mapping: list<(token_name: text, contract_address: byte_array, prototype_name: text)>)
Link copied to clipboard
@mount("evm_bridge.owns_token") query owns_token(token: withdrawal_token_data, chain_name: text, evm_address: byte_array): boolean
Link copied to clipboard
@mount("evm_bridge.token_withdrawn") query token_withdrawn(token: withdrawal_token_data, chain_name: text): boolean

Operations

Link copied to clipboard
@mount("evm_bridge.force_token_withdrawal_event") operation force_token_withdrawal_event(chain_name: text, deposit_address: byte_array, tokens: list<withdrawal_token_data>, block_number: integer)
Link copied to clipboard
@mount("evm_bridge.process_fast_withdrawal") operation process_fast_withdrawal(account_id: byte_array, auth_descriptor_id: byte_array, chain_name: text, tokens: list<withdrawal_token_data>, eth_address: byte_array)
Link copied to clipboard
@mount("evm_bridge.process_request_token_withdrawal_event") operation process_request_token_withdrawal_event(chain_name: text, deposit_address: byte_array, tokens: list<withdrawal_token_data>, block_number: integer, eth_address: byte_array)
Link copied to clipboard
@mount("evm_bridge.process_token_deposited_event") operation process_token_deposited_event(chain_name: text, deposit_address: byte_array, tokens: list<deposit_token_data>, block_number: integer, eth_address: byte_array)
Link copied to clipboard
@mount("evm_bridge.process_transfer_event") operation process_transfer_event(chain_name: text, elle_contract_address: byte_array, block_number: integer, token_transferred_request: token_transferred_request)
Link copied to clipboard
@mount("evm_bridge.register_chain") operation register_chain(name: text)
Link copied to clipboard
@mount("evm_bridge.register_contract") operation register_contract(address: byte_array, chain_name: text, block_number: integer)
Link copied to clipboard
@mount("evm_bridge.register_token_name_mapping") operation register_token_name_mapping(token_name: text, prototype_name: text, contract_address: byte_array?)
Link copied to clipboard
@mount("evm_bridge.update_contract_block_number") operation update_contract_block_number(address: byte_array, chain_name: text, block_number: integer)
Link copied to clipboard
@mount("evm_bridge.update_contract_block_number_unsafe") operation update_contract_block_number_unsafe(address: byte_array, chain_name: text, block_number: integer)